home *** CD-ROM | disk | FTP | other *** search
- #include "point.h"
- #include "rect.h"
- //#include "OrderedCltn.h" // -gmv no OrderedCltn in rect
- #include "ordcltn.h" // -gmv 2/24/90: added support for
- // OrderedCltn.
-
- main()
- {
- cout << "\nTest class Rectangle\n";
- Rectangle a(0,0,10,10);
- Rectangle b(Point(1,2),Point(11,3));
- Rectangle c;
- cout << "a = " << a << "\n";
- cout << "b = " << b << "\n";
- cout << "a == b: " << (a==b) << "\n";
- c = a;
- cout << "a isEqual c: " << a.isEqual(c) << "\n";
- cout << "a contains b: " << a.contains(b) << "\n";
- cout << "a intersects b: " << a.intersects(b) << "\n";
- cout << "a||b = " << (a||b) << "\n";
- cout << "a&&b = " << (a&&b) << "\n";
- cout << a.areasOutside(b); //-gmv no OrderedCltn in rect
- return 0;
- }
-
-